import request from '@/utils/request'
import qs from 'qs';


export function gethomeList(params) {
  return request({
    url: '/check/index/taskCountList',
    method: 'get',
    params
  })
}

// 获取用户详情
export function getUserhome(params) {
    return request({
        url: '/check/admin_task/getInfo',
        method: 'get',
        params
    })
}
 
// 
export function homePayinfo(params) {
    return request({
        url: '/check/admin_task/income',
        method: 'get',
        params
    })
}

// 首页数据统计
export function payCount(params) {
    return request({
        url: '/check/admin_pay/payCount',
        method: 'get',
        params
    })
}

// 个人信息页统计
export function userpayCount(params) {
    return request({
        url: '/check/pay/payCount',
        method: 'get',
        params
    })
}


// 个人信息页统计
export function userpayCountInfo(params) {
    return request({
        url: '/check/admin_pay/payCount',
        method: 'get',
        params
    })
}




// 发送消息
export function sendMsg(data) {
  return request({
    url: '/check/msg/add',
    method: 'post',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    },
    data:qs.stringify(data),
  })
}
